package fun.coding.leetcode;

public class SingleNumber {

    public static void main(String[] args) {

    }
    
    public int singleNumber(int[] A) {
        int num = 0;
        
        for (int i : A) {
            num ^= i;
        }
        
        return num;
    }

}
